package org.imaginedays.androidall.ui;

import org.imaginedays.androidall.fragment.TestListFragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;

public class LoaderTestACT extends FragmentActivity {

	private static final String TAG_FRAGMENT_LIST = "list";

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		Fragment fragment = getSupportFragmentManager().findFragmentByTag(
				TAG_FRAGMENT_LIST);
		if (fragment == null) {
			fragment = TestListFragment.newInstance();
			FragmentTransaction ft = getSupportFragmentManager()
					.beginTransaction();
			ft.add(android.R.id.content, fragment, TAG_FRAGMENT_LIST);
			ft.commit();
		}
	}
}
